package com.icarcom.cn.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

/**
 * Created by JL on 2020/12/14.
 *
 * jl
 */

public class secondsToTime {
    public static final String COMMON_DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public static DateFormat commonDateTimeFormat() {
        return new SimpleDateFormat(COMMON_DATE_TIME_FORMAT);
    }

    public static String timesToDateLineStr(int times) {
        long msl = (long) times * 1000;
        String str = commonDateTimeFormat().format(msl);
        return str;
    }
}
